<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>14-CSS3盒子模型border-box</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        div {
            width: 200px;
            height: 200px;
            background-color: deeppink;
            border: 20px solid skyblue;
            padding: 15px;
            box-sizing: content-box;
        }
        p {
            width: 200px;
            height: 200px;
            background-color: deeppink;
            border: 20px solid skyblue;
            padding: 15px;
            /* CSS3盒子模型 盒子最终的大小就是width 200 的大小 */
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <div>易烊千玺</div>
    <p>还是千玺</p>
</body>
</html>